{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nexport default function DefaultPanel(props) {\n  var prefixCls = props.prefixCls,\n    current = props.current,\n    total = props.total,\n    title = props.title,\n    description = props.description,\n    onClose = props.onClose,\n    onPrev = props.onPrev,\n    onNext = props.onNext,\n    onFinish = props.onFinish,\n    arrow = props.arrow,\n    className = props.className;\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(\"\".concat(prefixCls, \"-content\"), className)\n  }, arrow && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-arrow\"),\n    key: \"arrow\"\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-inner\")\n  }, /*#__PURE__*/React.createElement(\"button\", {\n    type: \"button\",\n    onClick: onClose,\n    \"aria-label\": \"Close\",\n    className: \"\".concat(prefixCls, \"-close\")\n  }, /*#__PURE__*/React.createElement(\"span\", {\n    className: \"\".concat(prefixCls, \"-close-x\")\n  }, \"\\xD7\")), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-header\")\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-title\")\n  }, title)), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-description\")\n  }, description), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-footer\")\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-sliders\")\n  }, total > 1 ? _toConsumableArray(Array.from({\n    length: total\n  }).keys()).map(function (item, index) {\n    return /*#__PURE__*/React.createElement(\"span\", {\n      key: item,\n      className: index === current ? 'active' : ''\n    });\n  }) : null), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-buttons\")\n  }, current !== 0 ? /*#__PURE__*/React.createElement(\"button\", {\n    className: \"\".concat(prefixCls, \"-prev-btn\"),\n    onClick: onPrev\n  }, \"Prev\") : null, current === total - 1 ? /*#__PURE__*/React.createElement(\"button\", {\n    className: \"\".concat(prefixCls, \"-finish-btn\"),\n    onClick: onFinish\n  }, \"Finish\") : /*#__PURE__*/React.createElement(\"button\", {\n    className: \"\".concat(prefixCls, \"-next-btn\"),\n    onClick: onNext\n  }, \"Next\")))));\n}","map":{"version":3,"names":["_toConsumableArray","React","classNames","DefaultPanel","props","prefixCls","current","total","title","description","onClose","onPrev","onNext","onFinish","arrow","className","createElement","concat","key","type","onClick","Array","from","length","keys","map","item","index"],"sources":["/data/messenger.client/node_modules/@rc-component/tour/es/TourStep/DefaultPanel.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nexport default function DefaultPanel(props) {\n  var prefixCls = props.prefixCls,\n      current = props.current,\n      total = props.total,\n      title = props.title,\n      description = props.description,\n      onClose = props.onClose,\n      onPrev = props.onPrev,\n      onNext = props.onNext,\n      onFinish = props.onFinish,\n      arrow = props.arrow,\n      className = props.className;\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(\"\".concat(prefixCls, \"-content\"), className)\n  }, arrow && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-arrow\"),\n    key: \"arrow\"\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-inner\")\n  }, /*#__PURE__*/React.createElement(\"button\", {\n    type: \"button\",\n    onClick: onClose,\n    \"aria-label\": \"Close\",\n    className: \"\".concat(prefixCls, \"-close\")\n  }, /*#__PURE__*/React.createElement(\"span\", {\n    className: \"\".concat(prefixCls, \"-close-x\")\n  }, \"\\xD7\")), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-header\")\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-title\")\n  }, title)), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-description\")\n  }, description), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-footer\")\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-sliders\")\n  }, total > 1 ? _toConsumableArray(Array.from({\n    length: total\n  }).keys()).map(function (item, index) {\n    return /*#__PURE__*/React.createElement(\"span\", {\n      key: item,\n      className: index === current ? 'active' : ''\n    });\n  }) : null), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-buttons\")\n  }, current !== 0 ? /*#__PURE__*/React.createElement(\"button\", {\n    className: \"\".concat(prefixCls, \"-prev-btn\"),\n    onClick: onPrev\n  }, \"Prev\") : null, current === total - 1 ? /*#__PURE__*/React.createElement(\"button\", {\n    className: \"\".concat(prefixCls, \"-finish-btn\"),\n    onClick: onFinish\n  }, \"Finish\") : /*#__PURE__*/React.createElement(\"button\", {\n    className: \"\".concat(prefixCls, \"-next-btn\"),\n    onClick: onNext\n  }, \"Next\")))));\n}"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,eAAe,SAASC,YAAY,CAACC,KAAK,EAAE;EAC1C,IAAIC,SAAS,GAAGD,KAAK,CAACC,SAAS;IAC3BC,OAAO,GAAGF,KAAK,CAACE,OAAO;IACvBC,KAAK,GAAGH,KAAK,CAACG,KAAK;IACnBC,KAAK,GAAGJ,KAAK,CAACI,KAAK;IACnBC,WAAW,GAAGL,KAAK,CAACK,WAAW;IAC/BC,OAAO,GAAGN,KAAK,CAACM,OAAO;IACvBC,MAAM,GAAGP,KAAK,CAACO,MAAM;IACrBC,MAAM,GAAGR,KAAK,CAACQ,MAAM;IACrBC,QAAQ,GAAGT,KAAK,CAACS,QAAQ;IACzBC,KAAK,GAAGV,KAAK,CAACU,KAAK;IACnB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